<extend name="Public:innerbase" />
<block name="js">
<script src="{:RES}/js/date/WdatePicker.js"></script>
</block>
<block name="content">
<div class="container-fluid">
	<ul class="nav nav-tabs wm-tabs">
		<li class="active"><a href="javascript:void(0)">会员管理</a></li>
		<li><a href="{:U('Member/check',['id'=>$_GET['id']])}">会员审核</a></li>
	</ul>
	<div class="page-header wm-page-header">
		<form method="get" action="__SELF__" class="form-inline">
		<label>卡号</label>
		<input name="number" type="text" value="{$_GET['number']}" class="form-control" />
		<label>姓名</label>
		<input name="truename" type="text" value="{$_GET['truename']}" class="form-control" />
		<label>手机号</label>
		<input name="mobile" type="text" value="{$_GET['mobile']}" class="form-control" />
		<button class="btn btn-primary" type="submit">
			<span class="glyphicon glyphicon-search"></span>
			查询
		</button>
		</form>
	</div>
	<TABLE class="table wm-table-bordered table-striped table-hover">
		<THEAD>
		<TR>
			<TH>会员卡号</TH>
			<TH>会员卡级别</TH>
			<TH>姓名</TH>
			<TH>联系电话</TH>
			
			<TH>领卡时间</TH>
			<TH>消费金额(元)</TH> 
			<TH>会员卡余额</TH>
			<TH>积分</TH>            
			<TH style="text-align:center;"></TH>
		</TR>
		</THEAD>
		<TBODY>
		<volist id="list" name="list">
		<TR>
			<TD>{$list.number}</TD>
			<TD>{$list.type_name}</TD>
			<TD>{$list.truename}</TD>
			<TD>{$list.tel}</TD>
			<TD>
			<if condition="$list['getcardtime'] neq false">
				{$list.getcardtime|date='Y-m-d',###}
			<else/>
			无时间记录
			</if>
			</TD>
			<TD>{$list.total_expense}</TD>
			<TD>{$list.money}</td>
			<TD>{$list.total_score}</td>
			<TD style="text-align:center;">
				<a href="{:U('detail?id='.$list['id'])}" class="btn btn-xs btn-primary">查看</a>
				<if condition="$_SESSION['sub_id'] eq 0"><span class="btn btn-xs btn-danger" onclick='spark.confirm_jump("会员删除后不可恢复，您确定要继续吗?", "{:U('User/Member/del',['id'=>$list['id']])}")'>
				删除</span></if>
			</TD>
		</form>
		</TR>
		</volist>
	  </TBODY>
	</TABLE>
	<div>{$page}</div>
</div>
</block>